//
//  GridView.h
//  ATNetworks
//
//  Created by Ankit Thakur on 18/04/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>


#define ICON_COLUMNS 3
#define ICON_TOTAL   [self numberOfIcons]
#define ICON_WIDTH  77
#define ICON_HEIGHT 85
#define ICON_MARGIN 30
#define SIDE_MARGIN 12
#define ICON_LABEL_WIDTH 70


#define ICON_ROWS		ICON_TOTAL/ICON_COLUMNS
#define LAST_ROW_ICONS ICON_TOTAL%ICON_COLUMNS
#define kFontNormal						[UIFont fontWithName:@"Helvetica" size:11]
#define kColorClear						[UIColor clearColor]
#define SCROLLVIEW_TAG 1234567890
#define logger(format, ...) NSLog(@"%s:%@", __PRETTY_FUNCTION__,[NSString stringWithFormat:format, ## __VA_ARGS__]);



@class ATImageDownloader;
@interface GridView : UIView {

	NSMutableArray	*imageArray;
	NSMutableArray	*imageUrlArray;
	NSMutableArray	*labelArray;
	ATImageDownloader *imageDownloader;
	id delegate;
}

@property (nonatomic, retain) ATImageDownloader	*imageDownloader;
@property (nonatomic, assign) id delegate;
@property (nonatomic, retain) NSMutableArray	*imageArray;
@property (nonatomic, retain) NSMutableArray	*imageUrlArray;
@property (nonatomic, retain) NSMutableArray	*labelArray;

- (NSInteger) numberOfIcons;
@end
